{layout name="layout" /}
<table class="table">
<colgroup>
    <col class="w40" />
    <col class="w120" />
    <col class="w160" />
    <col class="w160"  />
    <col class="w120" />
    <col />
    <col class="w140" />
</colgroup>
<thead>
    <tr>
        <th class="fn-tac">#</th>
        <th>用户名</th>
        <th>权限组</th>
        <th>最后登录时间</th>
        <th>最后登录IP</th>
        <th>备注</th>
        <th>操作</th>
    </tr>
</thead>
<tbody>
{volist name="lists" id="rs"}
    <tr>
        <td class="fn-tac">{$rs.id}</td>
        <td>{if condition="$rs.id != $admin_id"}<i class="iconfont icon-lianjie"></i> <a href="{:url('admin/user/edit',array('id'=>$rs['id']))}">{$rs.username}</a>{else /}<i class="iconfont icon-lianjie"></i> {$rs.username}{/if}</td>
        <td>{$rs.group_id}</td>
        <td>{$rs.last_login_time}</td>
        <td>{$rs.last_login_ip}</td>
        <td>{$rs.about}</td>
        <td>
            {if condition="$rs.id != $admin_id"}
            <a class="a-button a-blue" href="{:url('admin/user/edit',['id'=>$rs.id])}"><i class="iconfont icon-edit"></i> {$Think.lang.lang_ui_edit}</a>
            <a class="a-button isDel" url="{:url('admin/user/delete',['id'=>$rs.id])}" href="javascript:;" data-rules="delete"><i class="iconfont icon-lajixiang"></i> {$Think.lang.lang_ui_delete}</a>
            {else /}
            <span class="a-button a-disabled"><i class="iconfont icon-edit"></i> {$Think.lang.lang_ui_edit}</span>
            <span class="a-button a-disabled"><i class="iconfont icon-lajixiang"></i> {$Think.lang.lang_ui_delete}</span>
            {/if}
        </td>
    </tr>
{/volist}
</tbody>
</table>
<div class="page">{$page}</div>
<script type="text/javascript">
Do('base','layer',function(){
    $('.isDel').isDel();
})
</script>